﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NineMine.DataModel
{
    public class TimeEntry
    {
        [Key]
        public long Id { get; set; }

        [Required]
        public Project Project { get; set; }

        [Required]
        public User User { get; set; }

        [Required]
        public Issue Issue { get; set; }

        [Required]
        public decimal Hours { get; set; }

        [MaxLength(255)]
        public string Comments { get; set; }

        [Required]
        public Enumeration Activity { get; set; }

        [Required]
        public DateTime SpentOn { get; set; }

        [Required]
        public int Year { get; set; }

        [Required]
        public int Month { get; set; }

        [Required]
        public int Week { get; set; }

        [Required]
        public DateTime CreatedOn { get; set; }

        [Required]
        public DateTime UpdatedOn { get; set; }
    }
}
